package com.coderjacky.search.server.controller;


import com.coderjacky.common.core.domain.Result;
import com.coderjacky.search.common.domain.SkuEsModel;
import com.coderjacky.search.server.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;


@RestController
@RequestMapping("/es/save")
public class EsSaveController {


    @Autowired
    private ProductService productService;




    @PostMapping("/productStatusUp")
    public Result productStatusUp(@RequestBody  List<SkuEsModel> skuEsModelList)  {

        productService.productStatsUp(skuEsModelList);


        return Result.success();
    }
}
